//
//  FTBaseTabBarController.m
//  FashionTech
//
//  Created by JackieYip on 16/4/11.
//  Copyright © 2016年 mondial-d. All rights reserved.
//

#import "FTBaseTabBarController.h"

@implementation FTBaseTabBarController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSAssert(self.tabBar.items.count == 4, @"Tabbar items count is not matching with design");
    NSArray *imageNames = @[@"home", @"design", @"show", @"members"];
    for (int i = 0; i < self.tabBar.items.count; i++) {
        UITabBarItem *tabBarItem = self.tabBar.items[i];
        NSString *selectedImageName = [NSString stringWithFormat:@"%@%@", @"s-", imageNames[i]];
        tabBarItem.selectedImage = [[UIImage imageNamed:selectedImageName] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    }
}

@end
